package tdh.xt.enums;

public enum CustomResultCode {
    UPDATE_USER_FAILER(4000, "更新用户失败"),
    DELETE_USER_FAILER(4001, "删除用户失败"),
    DELETE_USER_SUCCESS(1, "删除用户成功"),
    NO_LOGGING_ERROR(914,"您还没有登录哦"),
    LOGGING_SUCCESS(1, "登陆成功"),
    USERNAME_OR_PASSWORD_ERROR(916, "您输入的用户名或口令不正确"),
    LOGOUT_SUCCESS(1, "注销成功"),
    FIND_ONE_USER(1, "找到一个符合要求的用户"),
    NO_USER_FOUNDED(4002, "未找到符合要求的用户"),
    ALREADY_EXISTS_USER(4003, "用户已存在，请检查用户id"),
    UPDATE_USER_SUCCESS(1, "更新用户成功"),
    ADD_USER_FAILER(4004, "添加用户失败"),
    ADD_USER_SUCCESS(1, "添加用户成功"),
    PXH_MUST_BE_NUMBER(4005, "排序号必须是数字"),
    SUCCESS(1, "操作成功"),
    SERVER_ERROR(4007, "服务器异常");
    private Integer code;
    private String message;

    CustomResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
